home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / 80X86 / DOS32V33.ZIP / EXAMPLES / EG1.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-10-26  |  727 b   |  30 lines

  1. ;***************************************************************************
  2. ; EG1.ASM          The calssic program that prints 'Hello World'
  3. ;
  4. ;
  5. ; DOS32 assembly language example program
  6. ;***************************************************************************
  7.  
  8. .386
  9. .model flat
  10. .stack 1000h
  11. .code
  12.  
  13.  
  14. Message     DB  'Hello World....',10,13,36
  15.  
  16. My_program:                                     ; Start of program
  17.  
  18.  
  19.         mov   edx,Offset Message                ; DS:EDX -> string to print
  20.         mov   ah,9
  21.         int   21h
  22.  
  23.         mov   ax,4C00h                          ; Termiate the program
  24.         int   21h
  25.  
  26.  
  27.  
  28.  
  29. end  My_program                                 ; define stating address
  30.